<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui" />
        <meta name="viewport" content="width=device-width,initial-scale=1.0" />
        <meta name="renderer" content="webkit" />
        <meta name="mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <meta name="author" content="火星科技 http://mars3d.cn " />
        <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
        <!-- <script src="http://mars3d.cn/example/js/graphicManager.js"></script> -->
        <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
        <title>基地编辑</title>

        <!---如果需要切换至自定义版本cesium时，取消下面注释 并拷贝ceisum到public目录下-->
        <!-- <script type="text/javascript" >
      window.CESIUM_BASE_URL ="<%= BASE_URL %>lib/Cesium/"
    </script>
    <link rel="stylesheet" href="<%= BASE_URL %>lib/Cesium/Widgets/widgets.css">
    <script type="text/javascript" src="<%= BASE_URL %>lib/Cesium/Cesium.js"></script> -->
    </head>

    <body>
        <noscript>
            <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
        </noscript>
        <div id="app"></div>
        <!-- built files will be auto injected -->
        <script type="text/javascript">
            // alert(window.innerWidth)
            // document.domain = ''
            calculate()
            window.onresize = function() {
                calculate()
            }

            function refreshOrClose() {
                // alert("关闭WebSocket")
                // return '关闭WebSocket'
                webSocket.webSocketClose()
            }

            function calculate() {
                var wW = window.innerWidth // 当前窗口的宽度
                // var wH = window.innerHeight; // 当前窗口的高度
                var whdef = 1 / 1920 // 表示1920的设计图,使用100PX的默认值,使用100px只是为了方便计算 其他值都可以
                var rem = wW * whdef // 以默认比例值乘以当前窗口宽度,得到该宽度下的相应FONT-SIZE值
                document.getElementsByTagName('html')[0].style.fontSize = rem + 'px'
            }
        </script>
    </body>
</html>
